package com.bluej.study.spring_boot.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author xingdongjie
 * @date 2018/4/25 17:41
 */
@Data
@Component
@ConfigurationProperties(prefix = "coupon")
@PropertySource(value = "classpath:env.properties",encoding = "UTF-8")
public class ConfigBean {
    String name;
    int random;
    String uuid;
}
